/*
* @Author: wanghongfucoder
* @Date:   2017-02-17 13:54:49
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-02-17 13:58:37
*/

public  class DecoratorDemo {
	public static void main(String[] args) {
		Shape circle=new Circle();
		Shape redCicle=new ResShapeDecorator(new Circle());
		Shape redRectangle=new ResShapeDecorator(new Rectangle());
		System.out.println("circle with normal borber");
		circle.draw();
		System.out.println("\n Cricle of red borber");
		redCicle.draw();
		System.out.println("\n Rectangle of red borber");
		redRectangle.draw();
	}
}